class crond::iop {
  cron { 'iop':
    command   => '/root/bin/iop/process_check.sh',
    user      => 'root',
    minute    => '*/30',
    hour      => '*'
  }
  file { "/root/bin/iop":
    mode       =>  '755',
    owner      =>  0,
    group      =>  0,
    source     =>  "puppet:///modules/${module_name}/iop",
    recurse    =>   true,
    ensure     =>   directory,
    force      =>   true,
    require    =>   File['/root/bin'],
  }
  file { "/etc/logrotate.d/process_check":
    mode       =>  '644',
    owner      =>  0,
    group      =>  0,
    source     =>  "puppet:///modules/${module_name}/process_check",
    force      =>   true,
  }
}
